<%@ page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/page/inc/taglib.jsp"%>
<div class="pageContent">
	<form method="post" action="${pageContext.request.contextPath}${requestScope.record ==null ?'/orders/orders/insert' :'/orders/orders/update' }" class="pageForm required-validate" onsubmit="return validateCallback(this, dialogAjaxDone);">
		<div class="pageFormContent" layoutH="56">
			<!-- 关闭窗口 -->
			<input type="hidden" name="callbackType" value="closeCurrent" />
			<!-- 隐藏表单 -->
			
			<c:if test="${requestScope.record !=null}">
																	
					<input type="hidden" name="orderId" value="${requestScope.record.orderId}" />
																																																																																																																																																																																																																																																																																																																			
			</c:if>
			
																						<p>
					<label>订单号</label> <input name="orderNum" class="required" maxlength="50" type="text" value="${requestScope.record.orderNum}"  />
				</p>
							<p>
				<label>订单流程</label> <select name="orderProcess" class="combox required">
				<option>请选择</option>
					<option value="0" ${requestScope.record.employeeState==0?'selected':''}>新订单（未付款）</option>
					<option value="1" ${requestScope.record.employeeState==1?'selected':''}>已受理</option>
					<option value="2"  ${requestScope.record.employeeState==2?'selected':'' }>待收货</option>
				 	<option value="6"  ${requestScope.record.employeeState==2?'selected':'' }>待退款中</option>
				    <option value="7"  ${requestScope.record.employeeState==2?'selected':'' }>已退货</option>
				    <option value="8"  ${requestScope.record.employeeState==2?'selected':'' }>取消订单</option>
				    <option value="9"  ${requestScope.record.employeeState==2?'selected':'' }>完成</option>
				</select>
			</p>
								<p>
					<label>订单总额 </label> <input name="orderMoney" class="required" maxlength="11" type="text" value="${requestScope.record.orderMoney}"  />
				</p>
								<p>
					<label>应收金额 </label> <input name="receivableMoney" class="required" maxlength="11" type="text" value="${requestScope.record.receivableMoney}"  />
				</p>
								<p>
					<label>实收金额 </label> <input name="realMoney" class="required" maxlength="11" type="text" value="${requestScope.record.realMoney}"  />
				</p>
								<p>
					<label>活动减免金额  </label> <input name="activityReduceMoney" class="required" maxlength="11" type="text" value="${requestScope.record.activityReduceMoney}"  />
				</p>
		</div>
		<div class="formBar">
			<ul>
				<!--<li><a class="buttonActive" href="javascript:;"><span>保存</span></a></li>-->
				<li><div class="buttonActive">
						<div class="buttonContent">
							<button type="submit">保存</button>
						</div>
					</div></li>
				<li>
					<div class="button">
						<div class="buttonContent">
							<button type="button" class="close">取消</button>
						</div>
					</div>
				</li>
			</ul>
		</div>
	</form>
</div>
